package net.oschina.git.fsppp.view.frame;

import javax.swing.*;
import java.awt.*;

/**
 * Created by qihuang on 16-10-21.
 */
public class HelpView extends JFrame {
    private JLabel cd, mkdir, ls, rm, touch, read, write, chattr;

    public HelpView() {
        initView();
    }

    private void initView() {
        cd = new JLabel("1. cd:切换目录 (cd c:\\abc)");
        mkdir = new JLabel("2. mkdir:创建文件夹 (mkdir aa)");
        touch = new JLabel("3. touch:创建文件 (touch a.txt)");
        rm = new JLabel("4. rm:删除文件 (rm abc)");
        read = new JLabel("5. read:只读文件 (read a.txt)");
        write = new JLabel("6. write:写文件 (write a.txt)");
        chattr = new JLabel("7. chattr:改变文件属性 (chattr a.txt c)");

        add(cd);
        add(mkdir);
        add(touch);
        add(rm);
        add(read);
        add(write);
        add(chattr);
        setLayout(new GridLayout(8, 1, 0, 10));
        setSize(300, 400);
        setVisible(true);
        setResizable(false);
        setLocation(350, 50);
    }
}
